package com.gxa.modules.service;

import com.gxa.common.vo.JsonResult;
import com.gxa.common.vo.R;
import com.gxa.modules.pojo.R_User;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: wangyifan
 * @Date: 2021/12/27 19:02
 * @Description: $end$
 * @Version: V1.0
 */
public interface ManageService {
    /**增加角色*/
    R addRole(String roleName, List<Integer> powers);

    R addUser(R_User user);

    JsonResult queryRole(Integer currentPage, Integer pageSize,String string);

    JsonResult queryUser(Integer currentPage, Integer pageSize, String string);

    R updateRole(Integer roleId,@NotNull String roleName, List<Integer> powers);

    R deleteRole(@NotNull Integer roleId);

    R updateUser(R_User user);

    R deleteUser(@NotNull Long userId);
}
